package io.yizoo.core.message;

import java.util.List;

/**
 * 发送消息上下文
 */
public class MessageContext {
    /**
     * 公司标识
     */
    private String tenant;
    /**
     * 接收人
     */
    private List<String> userIdList;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 是否发送给所有人
     */
    private Boolean isAll;

    /**
     * 发送人
     */
    private String sendUserId;

    /**
     * 用户拼接字符  不对外使用
     */
    private String userDelimiter;

    public MessageContext(String tenant, List<String> userIdList, String title, String content, Boolean isAll, String sendUserId) {
        this.tenant = tenant;
        this.userIdList = userIdList;
        this.title = title;
        this.content = content;
        this.isAll = isAll;
        this.sendUserId = sendUserId;
    }

    public MessageContext(String tenant, List<String> userIdList, String title, String content, String sendUserId) {
        this.tenant = tenant;
        this.userIdList = userIdList;
        this.title = title;
        this.content = content;
        this.sendUserId = sendUserId;
    }

    public String getTenant() {
        return tenant;
    }

    public List<String> getUserIdList() {
        return userIdList;
    }

    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }

    public Boolean getAll() {
        return isAll;
    }

    public String getSendUserId() {
        return sendUserId;
    }

    String getUserDelimiter() {
        return userDelimiter;
    }

     void setUserDelimiter(String userDelimiter) {
        this.userDelimiter = userDelimiter;
    }
}
